package tourplanner.getData;

import java.io.UnsupportedEncodingException;

	public class encodingConversion {
		public static String toEuckr(String src, String serverInfo) throws UnsupportedEncodingException 
		{ 				
			if (serverInfo.startsWith("Apache Tomcat/5"))
			{
				if(src != null) 
					return new String(src.getBytes("8859_1"), "euc-kr");
				else
					return null;
			}
			else if(serverInfo.startsWith("Apache Tomcat/6"))
			{
				return src;			
			}
	
			return src;		
		} 
}
